<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="icon" href="<c:url value='/images/logo.ico'/>"> 
        <link href="<c:url value='/style/adminbis.css'/>" type="text/css" rel="stylesheet">
        <c:if test="${pageLien=='Users'}">
            <link href="<c:url value='/style/jquery-ui.min.css'/>" type="text/css" rel="stylesheet">
            <script type="text/javascript" src="<c:url value='/javascript/jquery-2.1.3.min.js'/>"></script>
            <script type="text/javascript" src="<c:url value='/javascript/jquery-ui.min.js'/>"></script>
        </c:if>
        <title>${pageTitre}</title>
    </head>
    <body class="sonata-bc skin-black fixed" style="min-height: 1391px;">
        <header class="header">
            <p class="logo">
                <span>C&MeBank</span>
            </p>
            <nav class="navbar navbar-static-top">
                <c:if test="${pageIndex==null}">
                <div class="navbar-left">
                    <ol class="nav navbar-top-links breadcrumb">                 
                        <li>
                            <a href=".">
                                <i class="fa fa-home"></i>
                            </a>
                        </li> 
                        <c:choose>
                            <c:when test="${pageList != null}">
                            <li class="active">
                                <span>${pageLien}</span>
                            </li>
                            </c:when>
                            <c:otherwise>
                            <li>
                                <a href="${page}">${pageLien}</a>
                            </li>
                            <li class="active">
                                <c:choose>
                                    <c:when test="${new != null}">
                                        <span>New</span>
                                    </c:when>
                                    <c:otherwise>
                                        <c:if test="${pageLien=='Accounts'}"><span>${account.num}</span></c:if>
                                        <c:if test="${pageLien=='Admins'}"><span>${admin.login}</span></c:if>
                                        <c:if test="${pageLien=='Users'}"><span>${user.login}</span></c:if>
                                    </c:otherwise>
                                </c:choose>
                            </li>
                            </c:otherwise>
                        </c:choose>
                    </ol>
                </div>
                </c:if>
            </nav>
        </header>
        <div class="wrapper row-offcanvas row-offcanvas-left">
            <aside class="left-side sidebar-offcanvas">
                <section class="sidebar">
                    <ul class="sidebar-menu">
                        <li class="treeview active">
                            <a href="#">
                                <i class="fa fa-cogs"></i>
                                    <span>Administration</span>
                                <i class="fa pull-right fa-angle-down"></i>
                            </a>
                            <ul class="treeview-menu active" style="display: block;">
                                <li <c:if test="${pageLien=='Admins'}">class="active"</c:if>>
                                    <a href="admin" style="margin-left: 10px;">
                                        <i class="fa fa-angle-double-right"></i>
                                        Admins
                                    </a>
                                </li>
                                <li <c:if test="${pageLien=='Users'}">class="active"</c:if>>
                                    <a href="user" style="margin-left: 10px;">
                                        <i class="fa fa-angle-double-right"></i>
                                        Users
                                    </a>
                                </li>
                                <li <c:if test="${pageLien=='Accounts'}">class="active"</c:if>>
                                    <a href="account" style="margin-left: 10px;">
                                        <i class="fa fa-angle-double-right"></i>
                                        Accounts
                                    </a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </section>
            </aside>